package cn.fintecher.pangolin.entity.mysql;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;

/**
 * @Author wangxiangdong
 * @Description 流程实例的审批人
 * @Date 2019/9/26 14:35
 **/
@Data
@Entity
@Table(name = "process_approver")
public class ProcessApprover extends BaseEntity {

    @ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
    @JoinColumn(name = "approve_id")
    private ProcessFlowNode processFlowNode;

    @ApiModelProperty("审批人名称")
    private String userName;

    @ApiModelProperty("审批人Id")
    private String userId;
}
